var setSelNode;
require([], function () {
	//循环获取用户监控权限填充到界面
	var $carMonitor = $('#car-monitor-wrap');
	$.each(window.parent.monitorMenu, function (index, id) {
		$carMonitor.find('li[data-menu=' + id + ']').removeClass();
	});

	//监控点击跳转到响应的界面
	$carMonitor.on('click', 'a', function () {
		var $parent = $(this).parent();
		if ($parent.hasClass('gray')) {
			return;
		}
		window.parent.openTab($parent.attr('data-menu'));
	});
	
	setSelNode = function(carId){
		interval = self.setInterval(function(){
			var type = commonFun.getLeftTreeCurrentTreeType();
			if(type != null ){
				clearInterval(interval);
				commonFun.setSelectedNodes(carId);
			}
		},1000);
	}
});